﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ElectronicRecords.Models.ViewEditShedule>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Редактировать расписание
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Редактировать рассписание</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.Label("ID") %>
            </div>
            <div class="editor-field">
                 <%: Html.TextBox("ID_Shedules",Model.Id,new {disabled="disabled"}) %>

                <%: Html.ValidationMessageFor(model => model.Id) %>
            </div>
                        
            <div class="editor-field">
                <%: Html.HiddenFor(model => model.spec ) %>
                
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Дата") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.date, String.Format("{0:g}", Model.date)) %>
                <%: Html.ValidationMessageFor(model => model.date) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Время начала") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.time_begin, String.Format("{0:g}", Model.time_begin)) %>
                <%: Html.ValidationMessageFor(model => model.time_begin ) %>
            </div>
            
             <div class="editor-label">
                <%: Html.Label("Время окончания") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.time_end, String.Format("{0:g}", Model.time_end)) %>
                <%: Html.ValidationMessageFor(model => model.time_end ) %>
            </div>
            
            
            <p>
                <input type="submit" value="Сохранить" class="g-button" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Назад к списку", "ViewShedules/" + Model.date.ToShortDateString(), new { }, new {@class="g-button" })%>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>

